<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #outer{
            background-image: url(../imgs/logo-mi2.png);
            background-size: 50px;
            width: 50px;
            height: 50px;
            position: absolute;
        }
    </style>
</head>
<body>
    <div id="outer"></div>
    <script>
        let outer = document.querySelector("#outer");
        function move(){
            let cx = event.clientX;
            let cy = event.clientY;

            outer.style.left = cx+"px";
            outer.style.top = cy+"px";
        }
        document.onmousemove=move;
    </script>
</body>
</html>